Page({
    
    data: {
      catchtouchmove: true,
      showDialog: true,
      display:'block',
      background: ['hand_1.png', 'hand_2.png', 'hand_3.png', 'hand_4.png'],
      content: [{'name': 1}, {'name': 1}, {'name': 1}, {'name': 1} ],
      indicatorDots: true,
      vertical: false,
      autoplay: true,
      interval: 2000,
      duration: 500
    },
    showDialogChange() {
      this.setData({
        showDialog: false,
        display: 'none',
        catchtouchmove: false
      })
    },
    changeIndicatorDots() {
      this.setData({
        indicatorDots: !this.data.indicatorDots
      })
    },
    
    go_ktbk() {
      // 跳转到课堂备课
      wx.navigateTo({
        url: '/pages/prepare/prepare'
      })
    },
    go_task() {
      // 跳转到布置作业
      wx.navigateTo({
        url: '/pages/task/task'
      })
    },
  
    intervalChange(e) {
      this.setData({
        interval: e.detail.value
      })
    },
    getScancode: function() {
      var _this = this;
      // 允许从相机和相册扫码
      wx.scanCode({
        success: (res) => {
          var result = res.result;
   
          _this.setData({
            result: result,
   
          })
        }
      })
    },  
    durationChange(e) {
      this.setData({
        duration: e.detail.value
      })
    },
     /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    wx.setNavigationBarTitle({
      title: '同步课堂',
    }) 
  },

  })

  